<template>
    <div>
        <h3>{{dailyToxicSaying}}</h3>
    </div>

</template>

<script>
    import { queryRandomToxicSaying } from '@/request/api';

	export default {
		name: 'Welcome',
        data(){
            return {
                dailyToxicSaying : ''
            }
        },
        created () {
            this.initDailyToxicSaying();
        },
        methods:{
		    initDailyToxicSaying(){
                queryRandomToxicSaying({}).then(res =>{
                    this.dailyToxicSaying = res.data.content;
                })


            }
        }
    }
</script>

<style scoped>

</style>
